package com.nms.util;

import com.nms.model.News;

public class ObjectUtil {

	private static ObjectUtil util = null;
	static {
		util = new ObjectUtil();
	}
	private ObjectUtil(){}
	public static ObjectUtil getInstance(){
		return util;
	}

	public void copyNews(News src,News object){
		object.setId(src.getId());
		object.setActiveTime(src.getActiveTime());
		object.setAssistTitle(src.getAssistTitle());
		object.setBackground(src.getBackground());
		object.setCommentCount(src.getCommentCount());
		object.setConcernCount(src.getConcernCount());
		object.setConclusion(src.getConclusion());
		object.setContent(src.getContent());
		object.setDegree(src.getDegree());
		object.setIntroduction(src.getIntroduction());
		object.setKeyword(src.getKeyword());
		object.setMainTitle(src.getMainTitle());
		object.setOrigin(src.getOrigin());
		object.setPublisher(src.getPublisher());
		object.setRebroadcast(src.getRebroadcast());
		object.setReleaseTime(src.getReleaseTime());
		object.setSubTitle(src.getSubTitle());
		object.setType(src.getType());
	
	}
}
